#pragma once

#include <base.h>

void serial_init(uint16_t port, uint32_t baudrate);

void serial_write_byte(uint8_t byte);
void serial_write(void *data, uint32_t len);
int serial_printf(const char *fmt, ...);

uint16_t serial_get_port();
uint32_t serial_get_baudrate();